<template>
	<div class="wrapper"></div>
</template>

<script>
import Cookies from 'js-cookie'
import { fromPost, screenW, onSize } from '@/libs/tool'
import { selectInformation, selectNotice } from '@/api/moduleIndex.js'
export default {
	name: '',
	components: {},
	props: {},
	data() {
		return {
			userInfo: '', //用户信息
			accessToken: '',
			Width: 0, //新闻宽度超出显示省略号
			screenWidth: screenW(), //屏幕宽度
			notice: '',
		}
	},
	watch: {
		watch: {
			screenWidth(val) {
				this.screenWidth = val
				this.onWidth()
			},
		},
	},
	computed: {},
	methods: {
		fromSummit: fromPost,
		init() {
			let userInfo = JSON.parse(Cookies.get('userInfo'))
			//	this.selectNewsPortal()
		},
		moreClick(type, name, path) {
			this.setStore('moreDetailType', {
				type: type,
				name: name,
				path: path,
			})
			this.$router.push({
				path: path,
			})
		},
		noticeLocalClick(item, url, id, newID) {
			if (item) {
				this.setStore('pagesInformationDetail', id)
				this.$router.push({
					name: 'information-detail',
				})
			} else {
				this.fromSummit(url, {
					authToken: this.accessToken,
					templateName: 'news',
					infoID: newID.toString(),
				})
			}
		},
		selectInformation() {
			//通知公告
			selectInformation({
				departmentId: this.userInfo.departmentId,
				num: 8,
			}).then((res) => {
				if (res.code == 200) {
					this.notice = res
				} else {
					this.$Message.error(res.message)
				}
			})
        },
        
	},
	created() {},
	mounted() {},
}
</script>
<style lang="less" scoped>
.wrapper {
	width: 100%;
	height: 100%;
}
</style>
<style lang="less">
@import './less/home.less';
@import '../../styles/common.less';
.my-card {
	.ivu-card-body {
		padding: 10px 12px;
	}
}
.my-card1 {
	.ivu-card-body {
		padding: 0;
	}
}
</style>
<style scoped lang="less">
@import './less/page_home.less';
.demo-carousel {
	width: 100%;
	height: 100%;
}
.page_home_main {
	height: 100%;
}
.page_home_scroll {
	height: 100%;
	width: 100%;
}
</style>